package com.yy.controller.service;

import com.yy.dto.EmployeePageQueryDTO;
import com.yy.entity.Employee;
import com.yy.result.PageResult;

public interface EmployeeService {
    /**
     * 分页查询员工列表
     * @param employeePageQueryDto
     * @return
     */
    PageResult getPageList(EmployeePageQueryDTO employeePageQueryDto);

    /**
     * 根据id删除员工
     * @param id
     */
    void deleteEmployee(Long id);

    /**
     * 新增员工
     * @param employee
     */
    void addEmployee(Employee employee);

    /**
     * 更新员工信息
     * @param employee
     */
    void updateEmployee(Employee employee);
}
